﻿// --------------------------------------------------------------------------------------------------------------------
// <copyright file="TestBase.cs" company="wwwlicious">
//   All rights reserved 2009.
// </copyright>
// <summary>
//   Summary description for TestBase
// </summary>
// --------------------------------------------------------------------------------------------------------------------

namespace Unspsc.Tests
{
    using NUnit.Framework;

    using Unspsc.Data;
    using Unspsc.Services;

    /// <summary>
    /// Summary description for TestBase
    /// </summary>
    public class TestBase
    {
        internal IUnspscService unspscService;

        internal IUnspscRepository unspscRepository;

        private string connString = @"Data Source=.\SQLEXPRESS;AttachDbFilename=|DataDirectory|\Db\Unspsc.mdf;Integrated Security=True;User Instance=True";

        [TestFixtureSetUp]
        public void Startup()
        {
            unspscRepository = new TestUnspscRepository();
			unspscService = new UnspscService(unspscRepository);
        }

        [TestFixtureTearDown]
        public void TearDown()
        {
            unspscRepository = null;
            unspscService = null;
        }
    }
}

